package com.marvels.financial.loan.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.marvels.financial.loan.dto.McfeReconciliyBatchRecordDTO;

public interface McfeReconciliyBatchRecordDao {
    int deleteByPrimaryKey(Integer recordId);

    int insert(McfeReconciliyBatchRecordDTO record);

    int insertSelective(McfeReconciliyBatchRecordDTO record);

    McfeReconciliyBatchRecordDTO selectByPrimaryKey(Integer recordId);

    int updateByPrimaryKeySelective(McfeReconciliyBatchRecordDTO record);

    int updateByPrimaryKeyWithBLOBs(McfeReconciliyBatchRecordDTO record);

    int updateByPrimaryKey(McfeReconciliyBatchRecordDTO record);
    
    /**
     * 更新任务批次状态
     * @param dto
     * @return
     */
    int updateRecStatus(McfeReconciliyBatchRecordDTO dto);
    
    
    /**
     * 查询出一批该状态的数据
     * @param recStatus
     * @return
     */
    List<McfeReconciliyBatchRecordDTO> selectByRecStatus(@Param(value="recStatus") String recStatus,@Param(value="batchUuid") String batchUuid);
    
    
    /**
     * 根据批次号更新为失效状态
     * @param batchId
     * @return
     */
    public int updateByBatchId(@Param(value="batchId") String batchId);
}